﻿<DyUi:Control
    xmlns:DyUi="clr-namespace:DyUi.Core.Controls;assembly=DyUi.Core" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" 
>
    <StackPanel  >

        <Button Name="Button1" Click="RouteEvent" />

        <Expander Width="Auto" >
            <Expander.Header>
                <TextBlock Text="I am header text…" />
            </Expander.Header>
            <ListBox>
                <ListBox.ContextMenu>
                    <ContextMenu>
                        <MenuItem Name="MenuItem_CreateInstance" Header="Create Instance" Click="RouteEvent" />
                    </ContextMenu>
                </ListBox.ContextMenu>
                <ListBoxItem>Document 1</ListBoxItem>
                <ListBoxItem>Document 2</ListBoxItem>
                <ListBoxItem>Document 3</ListBoxItem>
            </ListBox>
        </Expander>

    </StackPanel>
</DyUi:Control>
